package com.lsa.shenn.chap2;

import com.lsa.shenn.common.Task;
import com.lsa.shenn.common.perm.PermRepeat;
import com.lsa.helpers.Utils;

public class Task_2_1_1_Series_1_n implements Task
{
	private final int N = 7; // use numbers 1..N ( or 0..(N-1) )
	private final int K = 3; // length K
	
	public void doIt()
	{
		PermRepeat pr = new PermRepeat(this.N, this.K, false);
		
		int[] seq = pr.createFirstSequence();
		do
		{
			Utils.print(seq);
			seq = pr.move2NextSequence(seq);
		}
		while(seq != null);
	}
}
